/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ManageBean;

import HouseBN.HouseService;
import UserBN.UserService;
import entity.SwhUser;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Mr-Quick
 */
@ManagedBean
@RequestScoped
public class idProfile {
    String iduser;

    public String getIduser() {
        return iduser;
    }

    public void setIduser(String iduser) {
        this.iduser = iduser;
        getUserbyid();
        
    }
    SwhUser su;

    public SwhUser getSu() {
        return su;
    }
    public idProfile() {
    }
    
    
    public void getUserbyid()
    {
        UserService hs = new UserService();
        su = hs.findAccountByIduser(iduser);
    }
}
